//6.编写程序完成strcmp 的功能
#include<stdio.h>
int main()
{
	int i,j,t;
	char c1[] = "HELLO WORLD";
	char c2[] = "HELLO KETTY";
	int N = sizeof c1;
	int M = sizeof c2;
	if(N < M)
	{	
		t = M;
		M = N;
		N = t;
	}
	for(i = 0; i < N; i++)
		for(j = 0; j < M; j++)
			if(i == j)
			{
				if(c1[i] != c2[j])
				{		
					printf("%d\n",c1[i] - c2[j]);
					goto end;
				}	
				else if(c1[i] == c2[j] && c1[i] == '\0')
					printf("%d\n",c1[i] - c2[j]);
			}
end:
	return 0;
}
